package day5;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class Arr6 {
    public static void main(String[] args) {
        int[] ar = {8, 5, 3, 12, 14, 22, 556, 159, 6, 9};
        System.out.println(Arrays.toString(ar));
        Arrays.sort(ar);//排序
        // String str=Arrays.toString(ar);
        System.out.println(Arrays.toString(ar));
        String []name={"孙绍军","王康","马超","Old刘","Tomcruce","孙鹏程"};
        Arrays.sort(name);
        System.out.println(Arrays.toString(name));
    }
}
